home *** CD-ROM | disk | FTP | other *** search
/ Core Concepts in Art 2 / Core Concepts in Art (Frames of Reference)(The McGraw-Hill Companies)(2004).iso / mac / media / guess.swf / scripts / DefineButton2_82 / BUTTONCONDACTION on(release).as next >
Text File  |  2003-11-28  |  822b  |  24 lines

  1. on(release){
  2.    _parent.currentSlot = 0;
  3.    _parent.theChapter = _parent.resetRandomChapters[_parent.currentSlot];
  4.    i = _parent.currentSlot;
  5.    while(i < _parent.resetRandomChapters.length)
  6.    {
  7.       duplicateMovieClip("_parent.guess_mc.variableHolder_mc","vh" + i,16384 + (500 + i));
  8.       _parent.guess_mc["vh" + i].num = i;
  9.       if(_parent.resetRandomChapters[i] < 10)
  10.       {
  11.          loadVariables("txtFiles/Ch0" + _parent.resetRandomChapters[i] + "questionNum.txt","_parent.guess_mc.vh" + i);
  12.       }
  13.       else
  14.       {
  15.          loadVariables("txtFiles/Ch" + _parent.resetRandomChapters[i] + "questionNum.txt","_parent.guess_mc.vh" + i);
  16.       }
  17.       i++;
  18.    }
  19.    _parent.makePage2();
  20.    _parent.guess_mc.whichQuestion = 0;
  21.    _parent.searchPopUp_mc._visible = 0;
  22.    this._visible = 0;
  23. }
  24.